<h1>Listing issues</h1>

<table>
  <tr>
    <th>Journal</th>
    <th>Month</th>
    <th>Day</th>
    <th>Year</th>
  </tr>

<% for issue in @issues %>
  <tr>
    <td><%=h issue.journal_id %></td>
    <td><%=h issue.month %></td>
    <td><%=h issue.day %></td>
    <td><%=h issue.year %></td>
    <td><%= link_to 'Show', issue %></td>
    <td><%= link_to 'Edit', edit_issue_path(issue) %></td>
    <td><%= link_to 'Destroy', issue, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New issue', new_issue_path %>
